﻿/***********************************************************************
 * <copyright file="IInventoryItem.cs" company="BUCA JSC">
 * -->    Copyright (C) statement. All right reserved
 * </copyright>
 * 
 * Created:   LinhMC
 * Email:    linhmc@buca.vn
 * Website:
 * Create Date: Tuesday, October 22, 2013
 * Usage: 
 * 
 * RevisionHistory: 
 * Date         Author               Description 
 * 
 * ************************************************************************/

using System;
using System.Collections.Generic;
using BusinessObjects.BussinessDictionary;

namespace DataObjects.StandartInterfaces.Dictionary
{
    /// <summary>
    /// Defines methods to access InventoryItem
    /// </summary>
    /// <remarks>
    /// This is a database-independent interface. Implementations are database specific
    /// </remarks>
    public interface IInventoryItemDao  
    {
        /// <summary>
        /// Gets the inventory item list by stock.
        /// by BangNC
        /// </summary>
        /// <param name="itemStock">The item stock.</param>
        /// <param name="refId">The reference identifier.</param>
        /// <returns></returns>
        List<InventoryItem> GetInventoryItemListByStock(int unitId, int itemStock, int refId, DateTime postDate);
        /// <summary>
        /// Gets the paged.
        /// </summary>
        /// <param name="unitId">The unit identifier.</param>
        /// <param name="currentPage">The current page.</param>
        /// <returns></returns>
        List<InventoryItem> GetPaged(int unitId, int currentPage);

        /// <summary>
        /// Gets the inventory item by unit.
        /// </summary>
        /// <param name="unitId">The unit identifier.</param>
        /// <returns></returns>
         List<InventoryItem> GetInventoryItemByUnit(int unitId); 

        /// <summary>
        /// Gets the size of the page.
        /// </summary>
        /// <param name="unitId">The unit identifier.</param>
        
        /// <returns></returns>
        int GetPageSize(int unitId);

        

          /// <summary>
        /// Gets the inventoryItems by unit.
        /// </summary>
        /// <param name="inventoryItemId">The unit identifier.</param>
        /// <returns></returns>
        InventoryItem GetInventoryItem(int inventoryItemId); 

        
        /// <summary>
        /// Inserts the inventoryItem.
        /// </summary>
        /// <param name="inventoryItem">The inventoryItem.</param>
        string InsertInventoryItem(InventoryItem inventoryItem);

        /// <summary>
        /// Updates the inventoryItem.
        /// </summary>
        /// <param name="inventoryItem">The inventoryItem.</param>
        string UpdateInventoryItem(InventoryItem inventoryItem);

        /// <summary>
        /// Deletes the inventoryItem.
        /// </summary>
        /// <param name="inventoryItem">The inventoryItem.</param>
        string DeleteInventoryItem(InventoryItem inventoryItem);
    }
}
